using System.Collections.Generic;

namespace DefaultNamespace
{
    public static class DictionaryHelper
    {
        public static bool TryAdd(this Dictionary<int,int> self,int key,int value)
        {
            if (!self.ContainsKey(key))
            {
                self.Add(key,value);
                return true;
            }
            return false;
        }
    }
}